package com.shijianchen.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shijianchen.mapper.SpDictMapper;
import com.shijianchen.projo.dicts.Dict;
import com.shijianchen.service.SpDictService;
import com.shijianchen.utils.Result;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpDictServiceImpl extends ServiceImpl<SpDictMapper, Dict> implements SpDictService {
    @Override
    public List<Dict> getDict(String type) {
        LambdaQueryWrapper<Dict> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(Dict::getType,type);
        return baseMapper.selectList(wrapper);
    }
}
